package com.wanlian.netty.msg.Device;

import com.wanlian.json.JsonStringUtil;
import com.wanlian.netty.msg.BaseMsg;
import com.wanlian.netty.msg.Device.model.Disk;
import com.wanlian.netty.msg.MsgType;

/**
 * 设置共享磁盘
 */
public class DiskReq extends BaseMsg {

    private Disk disk;

    public DiskReq() {
        super();
        this.setType(MsgType.DEVICE_DISK_SET);
    }

    public Disk getDisk() {
        return disk;
    }

    public void setDisk(Disk disk) {
        this.disk = disk;
        this.setContent(JsonStringUtil.writeValueAsString(disk));
    }

}
